
#include "FineryTShirt.h"
#include <iostream>

using namespace npDecorator;
using namespace std;


FineryTShirt::FineryTShirt() : PersonFinery()
{

}

FineryTShirt::~FineryTShirt()
{

}

FineryTShirt::FineryTShirt(const FineryTShirt& cpy) : PersonFinery(cpy)
{

}

FineryTShirt& FineryTShirt::operator=(const FineryTShirt& asn)
{
    if (this == &asn)
    {
        return *this;
    }
    else
    {
        PersonFinery::operator=(asn);
        return *this;
    }
}

FineryTShirt* FineryTShirt::clone() const
{
    return new FineryTShirt(*this);
}

void FineryTShirt::show() const
{
    cout << "T恤";
    if (this->person)
    {
        this->person->show();
    }
}
